﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace RemoteDownload.Domain.Model.FileManagerAggregateRoot
{
    internal class FileInfoFactory
    {
        public static IList<FileInfo> GetFilesByFilter(string filter, DateTime? startTime = null, DateTime? endTime = null)
        {
            var rootDir = ConfigurationManager.AppSettings["RemoteDownloadRootDir"];
            var files = System.IO.Directory.GetFiles(rootDir).ToList();
            files.ForEach(f =>
            {
                var fileInfo = new System.IO.FileInfo(f);

            });
            return default(IList<FileInfo>);
        }
    }
}
